package com.sbtr.common.file;

import com.sbtr.common.file.dto.FileDto;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.File;

public interface FileService {

    <T extends FileDto> T uploadFile(MultipartFile file, T dto);

    <T extends FileDto> T uploadFile(File file, T dto);

    void downloadFile(HttpServletResponse resp, String path, String name);
}
